package com.yuan.fullstackback.pojo;

import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class SysCategory {
    /**
     * 主键ID
     */
    private Integer categoryId;
    /**
     * 分类名称
     */
    @Size(min = 2, max = 12)
    private String categoryName;
    /**
     * 分类别名
     */
    @Size(min = 2, max = 10)
    private String categoryAlias;
    /**
     * 创建人ID
     */
    private Integer createUser;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
    /**
     * 删除标志
     */
    private String delFlag;
}
